package com.huabo.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.huabo.base.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "TR_ROLE_MENU")
public class RoleMenu extends BaseModel implements Serializable {

    /**
     * <p>Field serialVersionUID: 序列号</p>
     */
    private static final long serialVersionUID = 1L;

    //主键
    @Id
    @Column(name = "F_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    //菜单id
    @Column(name = "F_MENU_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long menuId;

    //角色id
    @Column(name = "F_ROLE_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}